<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <button onclick="test1()">点击</button>

    <input onclick="test()" id="inp">

    <script src="../js/jquery.3.5.1.js" ></script>
    <script>

        function test1(){
            document.getElementById("inp").focus();
            // document.getElementById("inp").click();
            console.log('!!')
        }
        function test(){
            console.log('@!#!!')
            alert("~~~~")
        }

        // input触发focus事件是不会触发click事件！！
    </script>
</body>

</html>